@import './var.less';

.@{ant-prefix}-layout-sider {
  min-height: calc(100vh - 50px) !important;
}

.@{ant-prefix}-menu-submenu-title {
  color: @font-bigTitle;
  font-size: 14px;

  .menuIcon {
    color: @icon-default-color;
  }
}

.@{ant-prefix}-menu-inline .@{ant-prefix}-menu-item::after {
  right: auto;
  left: 0;
}

// @{ant-prefix}-from
.@{ant-prefix}-form label {
  font-size: 12px;
}

.@{ant-prefix}-form-item:not(.@{ant-prefix}-form-item-with-help) {
  margin-bottom: 20px;
}

.@{ant-prefix}-pagination {

  .@{ant-prefix}-pagination-item,
  .@{ant-prefix}-pagination-jump-prev+.@{ant-prefix}-pagination-item,
  .@{ant-prefix}-pagination-jump-next+.@{ant-prefix}-pagination-item {
    margin-right: 0;
    border: 1px solid @line-color  !important;
    border-radius: 0;

    &:hover {
      border-color: @primary-color  !important;
    }

    &.@{ant-prefix}-pagination-item-active {
      border: 1px solid @primary-color  !important;
      background-color: @primary-color  !important;

      a {
        color: @white-color  !important;
      }
    }
  }

  .@{ant-prefix}-pagination-item {
    border-left-color: transparent !important;
  }

  .@{ant-prefix}-pagination-prev,
  .@{ant-prefix}-pagination-next {
    .@{ant-prefix}-pagination-item-link {
      border-color: @line-color  !important;
      border-radius: 0;
    }

    &:hover:not(.@{ant-prefix}-pagination-disabled) {
      .@{ant-prefix}-pagination-item-link {
        border-color: @primary-color  !important;
      }
    }
  }

  .@{ant-prefix}-pagination-prev {
    margin-right: 0;

    .@{ant-prefix}-pagination-item-link {
      border-radius: 4px 0 0 4px;
    }
  }

  .@{ant-prefix}-pagination-next {
    .@{ant-prefix}-pagination-item-link {
      border-left-color: transparent !important;
      border-radius: 0 4px 4px 0;
    }
  }

  .@{ant-prefix}-select-selector {
    padding: 0 10px !important;
  }

  .@{ant-prefix}-pagination-total-text,
  .@{ant-prefix}-pagination-options-quick-jumper {
    color: @font-content  !important;
  }

  .@{ant-prefix}-pagination-options,
  .@{ant-prefix}-pagination-options-quick-jumper {
    margin-left: 5px !important;
  }

  .@{ant-prefix}-pagination-options-quick-jumper input {
    margin: 0 5px !important;
  }
}

.@{ant-prefix}-table {
  // border: 1px solid @line-color;

  .@{ant-prefix}-table-cell {
    padding: 8px 10px !important;

    .@{ant-prefix}-form-item-label {
      display: none;
    }

    .@{ant-prefix}-input-number {
      max-width: 100%;
    }
  }

  .@{ant-prefix}-table-thead {
    .@{ant-prefix}-table-cell {
      height: 40px;
      padding: 0 10px !important;
      line-height: 40px;
    }
  }
}

.@{ant-prefix}-input-affix-wrapper {
  height: 30px;
}

// tabs
.@{ant-prefix}-tabs {
  font-size: 12px;
}

.@{ant-prefix}-tabs-tab {
  height: 30px;
  background-color: @content-bg-color  !important;
  color: @font-content;
  font-size: 12px;

  &.@{ant-prefix}-tabs-tab-active {
    border-top: 2px solid @primary-color  !important;
    background-color: @white-color  !important;
  }
}

.@{ant-prefix}-tabs-card.@{ant-prefix}-tabs-top>.@{ant-prefix}-tabs-nav .@{ant-prefix}-tabs-tab+.@{ant-prefix}-tabs-tab {
  margin-left: 5px;
}

// table
.@{ant-prefix}-table {

  th,
  td {
    border-color: @line-color;
    color: #757575;
  }
}

// @{ant-prefix}-message
.@{ant-prefix}-message-notice-content {
  padding: 0;
  // height: 45px;

  .@{ant-prefix}-message-custom-content {
    display: flex;
    align-items: center;
    // padding: 10px 20px;
    // height: 45px;
    border-radius: 4px;

    .anticon {
      margin-right: 10px;
      font-size: 16px;
    }
  }

  .@{ant-prefix}-message-success {
    background-color: @light2;
    color: @success-color;
  }

  .@{ant-prefix}-message-error {
    background-color: @light6;
    color: @error-color;
  }

  .@{ant-prefix}-message-warning {
    background-color: #fef9f3;
    color: @warn-color;
    // border: 1px solid #f5ead4;
  }

  .@{ant-prefix}-message-info {
    background-color: #f7f7f7;
    color: @font-content  !important;

    .anticon {
      color: @font-content;
    }
  }
}

.leapSelect {
  .@{ant-prefix}-select-selector {
    width: 100%;
    height: 30px !important;
  }
}

.@{ant-prefix}-empty-image {
  height: 72px !important;
  background: url(@/assets/images/empty.png) center center no-repeat !important;
  background-size: 72px !important;

  .@{ant-prefix}-empty-img-simple {
    display: none;
  }

  img {
    display: none;
  }
}

.@{ant-prefix}-modal-body {

  .@{ant-prefix}-form-item:last-of-type {
    margin-bottom: 0 !important;
  }

  .@{ant-prefix}-table-pagination {
    margin-bottom: 0 !important;
  }
}

.@{ant-prefix}-table-pagination {
  margin: 20px 0 !important;
}

.@{ant-prefix}-table+.@{ant-prefix}-table-pagination {
  margin-bottom: 0 !important;
}